package org.magento.utils;

import java.io.IOException;
import java.net.URL;
import java.util.Properties;

//This class get us values of properties stored in src/main/resources
public class ConfigProperties {
	
	private static Properties PROPERTIES;
	
	static {
		PROPERTIES = new Properties();
		URL props = ClassLoader.getSystemResource("config.properties");
		try {
			PROPERTIES.load(props.openStream());	
	} catch (IOException e) {
	e.printStackTrace();
	}
} 
public static String getProperty (String key) {
	return  PROPERTIES.getProperty(key);
	}
}